--[[
	tags所有标签: fruit-水果度, monster-怪物度, sweetener-甜度, veggie-菜度, meat-肉度, frozen-冰度, fish-鱼度, egg-蛋度
	decoration-装饰度-蝴蝶翅膀, fat-油脂度-黄油, dairy-奶度, inedible-不可食用度, seed-种子-桦栗果, magic-魔法度-噩梦燃料
    ]]
local foods =
{
    -- 浆果布丁
    tf_berry_pudding =
    {
        test = function(cooker, names, tags)
            return names.bird_egg == 2 and names.berries == 2                 -- 配方
        end,
        priority = 8,                                                         -- 优先级
        weight = 1,                                                           -- 权重
        foodtype = FOODTYPE.VEGGIE,                                           -- 蔬菜:VEGGIE 肉:MEAT 好东西:GOODIES
        health = 30,                                                          -- 生命值
        hunger = 12.5,                                                        -- 饥饿
        perishtime = 10800,                                                   -- 腐烂时间
        sanity = 15,                                                          -- 精神
        temperature = TUNING.COLD_FOOD_BONUS_TEMP,                            -- 温度变化
        temperatureduration = TUNING.FOOD_TEMP_LONG,                          -- 温度变化持续时间
        cooktime = 0.8,                                                       -- 烹饪时间:1对应20s
        floater = { "med", nil, 0.55 },                                       -- 漂浮在水面的参数
        card_def = { ingredients = { { "bird_egg", 2 }, { "berries", 2 } } }, -- 食谱卡
        potlevel = "low",                                                     -- 食物做好后在锅里的显示位置
    },
    -- 芦笋酿肉
    tf_asparagus_stuffed_meat =
    {
        test = function(cooker, names, tags)
            return (names.asparagus == 2 or names.asparagus_cooked == 2 or (names.asparagus == 1 and names.asparagus_cooked == 1))
                and tags.meat and tags.meat >= 1.5
        end,
        priority = 15,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 10,
        hunger = 62.5,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 0.8,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "meat", 2 }, { "asparagus", 2 } } },
    },
    -- 红烧肉
    tf_braised_pork =
    {

        test = function(cooker, names, tags)
            return names.meat == 2 and names.honey == 2
        end,
        priority = 10,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 60,
        hunger = 125,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 0.9,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "meat", 2 }, { "honey", 2 } } },
    },
    -- 生日蛋糕
    tf_cake =
    {
        test = function(cooker, names, tags)
            return tags.decoration and tags.decoration >= 1 and tags.egg and tags.egg >= 1 and names.butter == 2
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 150,
        hunger = 150,
        perishtime = nil,
        sanity = 150,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "bird_egg", 1 }, { "butter", 2 }, { "butterflywings", 1 } } },
    },
    -- 圣诞蛋糕
    tf_christmas_cake =
    {
        test = function(cooker, names, tags)
            return (names.acorn == 1 or names.acorn_cooked == 1) and names.bird_egg == 1 and names.corn == 2
        end,
        priority = 10,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 3,
        hunger = 47.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 5,
        cooktime = 0.8,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "bird_egg", 1 }, { "corn", 2 }, { "acorn", 1 } } },
        potlevel = "low",
    },
    -- 爆浆番茄炸串
    tf_exploding_tomato_skewers =
    {
        test = function(cooker, names, tags)
            return names.tomato == 3 and names.twigs == 1
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 10,
        hunger = 37.5,
        perishtime = 10 * TUNING.TOTAL_DAY_TIME,
        sanity = 5,
        cooktime = 0.8,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tomato", 3 }, { "twigs", 1 } } },
    },
    -- 鱼香茄子
    tf_fish_flavored_eggplant =
    {
        test = function(cooker, names, tags)
            return names.eggplant == 2 and tags.fish and tags.fish >= 1 and not tags.inedible
        end,
        priority = 15,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 30,
        hunger = 37.5,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "eggplant", 2 }, { "fishmeat_small", 2 } } },
    },
    -- 四喜丸子
    tf_four_happiness_meatballs =
    {
        test = function(cooker, names, tags)
            return tags.meat and tags.meat >= 1 and tags.veggie and tags.veggie >= 1 and tags.frozen and tags.frozen >= 1
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 3,
        hunger = 72.5,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 5,
        cooktime = 0.8,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "carrot", 1 }, { "meat", 2 }, { "ice", 1 } } },
    },
    -- 番茄酱配薯条
    tf_french_fries =
    {
        test = function(cooker, names, tags)
            return (names.tomato == 2 or names.tomato_cooked == 2 or (names.tomato == 1 and names.tomato_cooked == 1))
                and (names.potato == 2 or names.potato_cooked == 2 or (names.potato == 1 and names.potato_cooked == 1))
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 20,
        hunger = 72.5,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tomato", 2 }, { "potato", 2 } } },
    },
    -- 油炸必忘我
    tf_fried_forget_me_not =
    {
        test = function(cooker, names, tags)
            return names.forgetmelots == 2 and names.twigs == 2
        end,
        priority = 10,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 3,
        hunger = 12.5,
        perishtime = 10 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 0.5,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "forgetmelots", 2 }, { "twigs", 2 } } },
    },
    -- 蜂蜜面包
    tf_honey_bread =
    {
        test = function(cooker, names, tags)
            return names.corn == 2 and names.honey == 2
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 15,
        hunger = 67.5,
        perishtime = 15 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 0.5,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "corn", 2 }, { "honey", 2 } } },
        tags = { "honeyed" }, -- 糖类标签，携带此标签的料理，熊大会变成你的忠实粉丝
    },
    -- 坚果冰淇淋
    tf_nut_ice_cream =
    {
        test = function(cooker, names, tags)
            return names.acorn == 2 and names.honey == 1 and names.ice == 1
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 20,
        hunger = 12.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        temperature = TUNING.COLD_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "acorn", 2 }, { "honey", 1 }, { "ice", 1 } } },
    },
    -- 法式洋葱牛排配煎蛋
    tf_onion_steak =
    {
        test = function(cooker, names, tags)
            return tags.meat and tags.meat >= 2 and tags.egg and tags.egg >= 1 and names.onion == 1
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 60,
        hunger = 125,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1.2,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "meat", 2 }, { "bird_egg", 1 }, { "onion", 1 } } },
    },
    -- 速食披萨
    tf_pizza =
    {
        test = function(cooker, names, tags)
            return tags.meat and tags.meat >= 1 and tags.fish and tags.fish >= 0.5 and names.corn == 1 and names.tomato == 1
        end,
        priority = 15,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 40,
        hunger = 125,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "meat", 1 }, { "corn", 1 }, { "fishmeat_small", 1 }, { "tomato", 1 } } },
    },
    -- 罗宋汤
    tf_russian_soup =
    {
        test = function(cooker, names, tags)
            return names.tomato == 1 and names.eggplant == 1 and names.potato == 1 and names.pumpkin == 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 60,
        hunger = 82.5,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "eggplant", 1 }, { "tomato", 1 }, { "pumpkin", 1 }, { "potato", 1 } } },
        potlevel = "low",
    },
    -- 番茄炒蛋
    tf_scrambled_eggs_with_tomatoes =
    {
        test = function(cooker, names, tags)
            return names.tomato == 2 and names.bird_egg == 2
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 40,
        hunger = 75,
        perishtime = 10 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 0.8,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "bird_egg", 2 }, { "tomato", 2 } } },
    },
    -- 海鲜泡面
    tf_seafood_instant_noodles =
    {
        test = function(cooker, names, tags)
            return (names.pondeel == 1 or names.eel == 1 or names.eel_cooked == 1)
                and names.bird_egg == 1 and names.corn == 2
        end,
        priority = 15,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 30,
        hunger = 72.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 0.6,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "bird_egg", 1 }, { "pondeel", 1 }, { "corn", 2 } } },
        potlevel = "low",
    },
    -- 特色豚骨拉面
    tf_special_ramen =
    {
        test = function(cooker, names, tags)
            return (names.trunk_summer == 1 or names.trunk_winter == 1 or names.trunk_cooked == 1)
                and tags.egg and tags.egg >= 1 and tags.fish and tags.fish >= 0.5 and tags.veggie and tags.veggie >= 1
        end,
        priority = 15,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 30,
        hunger = 112.5,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 5,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "bird_egg", 1 }, { "trunk_summer", 1 }, { "fishmeat_small", 1 }, { "corn", 1 } } },
    },
    -- 肉沫蒸蛋
    tf_steamed_egg_with_meat =
    {
        test = function(cooker, names, tags)
            return tags.meat and tags.meat < 1.5 and tags.egg and tags.egg >= 1 and tags.frozen and tags.frozen >= 1
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 20,
        hunger = 37.5,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "bird_egg", 1 }, { "smallmeat", 2 }, { "ice", 1 } } },
    },
    -- 鲜炖胡萝卜串
    tf_stewed_carrot_skewers =
    {
        test = function(cooker, names, tags)
            return (names.carrot == 3 or names.carrot_cooked == 3) and names.twigs == 1
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 10,
        hunger = 42.5,
        perishtime = 10 * TUNING.TOTAL_DAY_TIME,
        sanity = 10,
        cooktime = 0.5,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "carrot", 3 }, { "twigs", 1 } } },
    },
    -- 石锅拌饭
    tf_stone_pot_bibimbap =
    {
        test = function(cooker, names, tags)
            return (names.carrot or names.carrot_cooked) and tags.veggie and tags.veggie >= 3 and not tags.inedible
        end,
        priority = 1,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 3,
        hunger = 57.5,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 5,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 0.7,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "carrot", 4 } } },
    },
    -- 寿司拼盘
    tf_sushi =
    {
        test = function(cooker, names, tags)
            return tags.egg and tags.egg >= 1 and tags.veggie and tags.veggie >= 1 and tags.fish and tags.fish >= 1 and tags.meat and tags.meat >= 1
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 60,
        hunger = 37.5,
        perishtime = 10 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 0.8,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "carrot", 1 }, { "bird_egg", 1 }, { "smallmeat", 1 }, { "fishmeat_small", 1 } } },
    },
    -- 辣子鸡
    tf_spicy_chicken =
    {

        test = function(cooker, names, tags)
            return names.drumstick == 2 and names.pepper == 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 40,
        hunger = 62.5,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1.1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "drumstick", 2 }, { "pepper", 2 } } },
    },
    -- 热辣香肠
    tf_spicy_sausage =
    {

        test = function(cooker, names, tags)
            return tags.meat and tags.meat > 1.5 and names.pepper == 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 30,
        hunger = 37.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "pepper", 2 }, { "meat", 2 } } },
    },
    -- 三色冰淇淋球
    tf_tricolor_ice_cream =
    {
        test = function(cooker, names, tags)
            return names.ice == 1 and names.dragonfruit == 1 and names.cave_banana == 1 and names.watermelon == 1
        end,
        priority = 8,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 60,
        hunger = 12.5,
        perishtime = 8 * TUNING.TOTAL_DAY_TIME,
        sanity = 44,
        temperature = TUNING.COLD_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "dragonfruit", 1 }, { "ice", 1 }, { "cave_banana", 1 }, { "watermelon", 1 } } },
        potlevel = "low",
    },
    -- 百奇
    tf_pocky =
    {
        test = function(cooker, names, tags)
            return names.honey == 2 and names.nightmarefuel == 2
        end,
        priority = 15,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 5,
        hunger = 5,
        perishtime = nil,
        sanity = 5,
        cooktime = 0.5,
        stacksize = 4,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "honey", 2 }, { "nightmarefuel", 2 } } },
    },
    -- 薯片
    tf_potato_chips =
    {
        test = function(cooker, names, tags)
            return names.potato == 4
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 20,
        hunger = 62.5,
        perishtime = 10 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 0.5,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "potato", 4 } } },
    },
    -- 爆米花
    tf_popcorn =
    {
        test = function(cooker, names, tags)
            return names.corn == 3 and names.butter == 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 60,
        hunger = 37.5,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 0.5,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "corn", 3 }, { "butter", 1 } } },
    },
    -- 暗影杂烩
    tf_shadow_potpourri =
    {
        test = function(cooker, names, tags)
            return tags.monster and tags.monster >= 2 and tags.magic and tags.magic >= 2
        end,
        priority = 60,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = -250,
        hunger = 100,
        perishtime = 15 * TUNING.TOTAL_DAY_TIME,
        sanity = -33,
        cooktime = 0.5,
        tags = { "monstermeat" },
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "monstermeat", 4 } } },
    },
    -- 汉堡
    tf_hamburger =
    {
        test = function(cooker, names, tags)
            return false
        end,
        priority = 60,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 3,
        hunger = 112.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 5,
        cooktime = 0,
        floater = { "med", nil, 0.55 },
        OnPutInInventory = function(inst, owner) if owner ~= nil and owner:IsValid() then owner:PushEvent("learncookbookstats", inst.food_basename or inst.prefab) end end,
        unlock = {},
        cook_need = "三维中饱食度百分比最低时开启饭盒",
    },
    -- 饭团
    tf_rice_ball =
    {
        test = function(cooker, names, tags)
            return false
        end,
        priority = 60,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 40,
        hunger = 62.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 5,
        cooktime = 0,
        floater = { "med", nil, 0.55 },
        OnPutInInventory = function(inst, owner) if owner ~= nil and owner:IsValid() then owner:PushEvent("learncookbookstats", inst.food_basename or inst.prefab) end end,
        unlock = {},
        cook_need = "三维中生命值百分比最低时开启饭盒",
    },
    -- 三明治
    tf_sandwich =
    {
        test = function(cooker, names, tags)
            return false
        end,
        priority = 60,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 20,
        hunger = 37.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 60,
        cooktime = 0,
        floater = { "med", nil, 0.55 },
        OnPutInInventory = function(inst, owner) if owner ~= nil and owner:IsValid() then owner:PushEvent("learncookbookstats", inst.food_basename or inst.prefab) end end,
        unlock = {},
        cook_need = "三维中精神值百分比最低时开启饭盒",
    },
    -- 蒜香虾球
    tf_garlic_shrimp_meat =
    {
        test = function(cooker, names, tags)
            return names.garlic == 2
                and (names.tf_green_shrimp_meat == 2 or names.tf_green_shrimp_meat_cooked == 2 or names.tf_green_shrimp == 2
                    or (names.tf_green_shrimp_meat == 1 and names.tf_green_shrimp_meat_cooked == 1)
                    or (names.tf_green_shrimp_meat == 1 and names.tf_green_shrimp == 1)
                    or (names.tf_green_shrimp_meat_cooked == 1 and names.tf_green_shrimp == 1))
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 20,
        hunger = 75,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_green_shrimp", 2 }, { "garlic", 2 } } },
    },
    -- 培根卷大虾
    tf_bacon_shrimp_roll =
    {
        test = function(cooker, names, tags)
            return tags.meat and tags.meat >= 2.5
                and (names.tf_green_shrimp_meat == 2 or names.tf_green_shrimp_meat_cooked == 2 or names.tf_green_shrimp == 2
                    or (names.tf_green_shrimp_meat == 1 and names.tf_green_shrimp_meat_cooked == 1)
                    or (names.tf_green_shrimp_meat == 1 and names.tf_green_shrimp == 1)
                    or (names.tf_green_shrimp_meat_cooked == 1 and names.tf_green_shrimp == 1))
        end,
        priority = 35,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 20,
        hunger = 75,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_green_shrimp_meat", 2 }, { "meat", 2 } } },
    },
    -- 虾仁滑蛋
    tf_scrambled_shrimp =
    {
        test = function(cooker, names, tags)
            return tags.egg and tags.egg >= 2
                and (names.tf_green_shrimp_meat == 2 or names.tf_green_shrimp_meat_cooked == 2 or names.tf_green_shrimp == 2
                    or (names.tf_green_shrimp_meat == 1 and names.tf_green_shrimp_meat_cooked == 1)
                    or (names.tf_green_shrimp_meat == 1 and names.tf_green_shrimp == 1)
                    or (names.tf_green_shrimp_meat_cooked == 1 and names.tf_green_shrimp == 1))
        end,
        priority = 40,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 40,
        hunger = 105,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_green_shrimp_meat", 2 }, { "bird_egg", 2 } } },
    },
    -- 油炸黄金蟹
    tf_golden_crab_claw =
    {
        test = function(cooker, names, tags)
            return names.potato == 2
                and (names.tf_dead_crab == 2 or names.tf_dead_crab_cooked == 2 or names.tf_crab == 2
                    or (names.tf_dead_crab == 1 and names.tf_dead_crab_cooked == 1)
                    or (names.tf_dead_crab == 1 and names.tf_crab == 1)
                    or (names.tf_dead_crab_cooked == 1 and names.tf_crab == 1))
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 60,
        hunger = 125.5,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_crab", 2 }, { "potato", 2 } } },
    },
    -- 蒜香肉蟹堡
    tf_shrimp_crab_burger =
    {
        test = function(cooker, names, tags)
            return tags.meat and names.garlic
                and (names.tf_dead_crab == 2 or names.tf_dead_crab_cooked == 2 or names.tf_crab == 2
                    or (names.tf_dead_crab == 1 and names.tf_dead_crab_cooked == 1)
                    or (names.tf_dead_crab == 1 and names.tf_crab == 1)
                    or (names.tf_dead_crab_cooked == 1 and names.tf_crab == 1))
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 88,
        hunger = 88,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 88,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_crab", 2 }, { "meat", 1 }, { "garlic", 1 } } },
    },
    -- 芝士虾蟹焗饭
    tf_cheese_shrimp_crab_rice_bake =
    {
        test = function(cooker, names, tags)
            return tags.veggie and tags.egg
                and (names.tf_dead_crab == 1 or names.tf_dead_crab_cooked == 1 or names.tf_crab == 1)
                and (names.tf_green_shrimp_meat == 1 or names.tf_green_shrimp_meat_cooked == 1 or names.tf_green_shrimp == 1)
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 40,
        hunger = 125.5,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_crab", 1 }, { "tf_green_shrimp", 1 }, { "bird_egg", 1 }, { "corn", 1 } } },
    },
    -- 松仁玉米虾仁--联动
    tf_corn_pine_nut_shrimp =
    {
        test = function(cooker, names, tags)
            return names.pinecone == 2 and names.corn == 1
                and (names.tf_green_shrimp_meat == 1 or names.tf_green_shrimp_meat_cooked == 1 or names.tf_green_shrimp == 1)
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 30,
        hunger = 75,
        perishtime = 16 * TUNING.TOTAL_DAY_TIME,
        sanity = 12.5,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "pinecone", 2 }, { "corn", 1 }, { "tf_green_shrimp", 1 } } },
    },
    -- 提拉米苏杯--联动
    tf_tiramisu =
    {
        test = function(cooker, names, tags)
            return names.pinecone == 1 and names.tf_strawberry == 1 and tags.sweetener and tags.fat
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 67.5,
        hunger = 67.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 67.5,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "pinecone", 1 }, { "tf_strawberry", 1 }, { "honey", 1 }, { "butter", 1 } } },
    },
    -- 香脆蝴蝶曲奇--联动
    tf_butterfly_pastry =
    {
        test = function(cooker, names, tags)
            return names.butterflywings == 2 and names.pinecone == 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 13.5,
        hunger = 15.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 25,
        cooktime = 1,
        stacksize = 2, -- 一次做两个
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "butterflywings", 2 }, { "pinecone", 2 } } },
    },
    -- 海盐奶绿--联动
    tf_sea_salt_milk_tea =
    {
        test = function(cooker, names, tags)
            return names.pinecone == 1 and names.foliage == 1 and names.ice == 1 and tags.sweetener
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 20,
        hunger = 12.5,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 75,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "sea_watermelon", 1 }, { "ice", 1 }, { "butter", 1 }, { "honey", 1 } } },
    },
    -- 地三鲜
    tf_earth_three_delicacies =
    {
        test = function(cooker, names, tags)
            return names.eggplant == 1 and names.potato == 2 and names.tf_green_pepper == 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 12.5,
        hunger = 82.5,
        perishtime = 15 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "eggplant", 1 }, { "potato", 2 }, { "tf_green_pepper", 1 } } },
    },
    -- 白菜猪肉炖粉条
    tf_pork_cabbage_glass_noodle_stew =
    {
        test = function(cooker, names, tags)
            return tags.meat and tags.meat >= 2 and names.tf_cabbage == 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 30,
        hunger = 125.5,
        perishtime = 15 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "meat", 2 }, { "tf_cabbage", 2 } } },
    },
    -- 草莓果冻
    tf_strawberry_jelly =
    {
        test = function(cooker, names, tags)
            return names.tf_strawberry == 3 and tags.frozen
        end,
        priority = 50,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 30,
        hunger = 12.5,
        perishtime = 8 * TUNING.TOTAL_DAY_TIME,
        sanity = 60,
        temperature = TUNING.COLD_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_strawberry", 3 }, { "ice", 1 } } },
    },
    -- 草莓蛋挞
    tf_strawberry_tart =
    {
        test = function(cooker, names, tags)
            return names.tf_strawberry == 2 and tags.egg and tags.sweetener
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 60,
        hunger = 33,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_strawberry", 2 }, { "bird_egg", 1 }, { "honey", 1 } } },
    },
    -- 草莓冻奶布丁
    tf_strawberry_milk_pudding =
    {
        test = function(cooker, names, tags)
            return names.tf_strawberry == 2 and tags.frozen and tags.sweetener
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 40,
        hunger = 12.5,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 60,
        temperature = TUNING.COLD_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_strawberry", 2 }, { "ice", 1 }, { "honey", 1 } } },
    },
    -- 草莓蛋糕
    tf_strawberry_cake =
    {
        test = function(cooker, names, tags)
            return names.tf_strawberry == 1 and tags.sweetener and tags.fat and tags.egg
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 40,
        hunger = 112.5,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_strawberry", 1 }, { "honey", 1 }, { "butter", 1 }, { "bird_egg", 1 } } },
    },
    -- 草莓水果派
    tf_strawberry_fruit_pie =
    {
        test = function(cooker, names, tags)
            return names.tf_strawberry == 1 and names.pomegranate == 1 and tags.sweetener and tags.fat
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 75,
        hunger = 75,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 75,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_strawberry", 1 }, { "pomegranate", 1 }, { "honey", 1 }, { "butter", 1 } } },
    },
    -- 橘子果汁
    tf_orange_juice =
    {
        test = function(cooker, names, tags)
            return names.tf_orange == 2 and tags.frozen and tags.frozen > 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 15,
        hunger = 25,
        perishtime = 8 * TUNING.TOTAL_DAY_TIME,
        sanity = 30,
        temperature = TUNING.COLD_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_orange", 2 }, { "ice", 2 } } },
    },
    -- 鱼香肉丝
    tf_fish_flavored_pork =
    {
        test = function(cooker, names, tags)
            return names.tf_green_pepper and tags.fish and tags.fish >= 1 and
                tags.meat and tags.meat >= 1 and tags.veggie and tags.veggie >= 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 40,
        hunger = 72.5,
        perishtime = 15 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_green_pepper", 2 }, { "meat", 1 }, { "fishmeat", 1 } } },
    },
    -- 草莓甜甜圈
    tf_strawberry_donut =
    {
        test = function(cooker, names, tags)
            return names.tf_strawberry and tags.sweetener and tags.fat and tags.fat > 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 60,
        hunger = 112.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 93.5,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_strawberry", 1 }, { "honey", 1 }, { "butter", 2 } } },
    },
    -- 猪排咖喱蛋包饭
    tf_pork_cutlet_curry_omurice =
    {
        test = function(cooker, names, tags)
            return tags.meat and tags.meat >= 2 and names.potato and names.tallbirdegg
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 80,
        hunger = 123.5,
        perishtime = 15 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "potato", 1 }, { "meat", 2 }, { "tallbirdegg", 1 } } },
    },
    -- 墨西哥热辣塔可
    tf_hot_taco =
    {
        test = function(cooker, names, tags)
            return tags.meat and tags.meat >= 1 and names.tf_green_pepper and names.tomato and names.potato
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 40,
        hunger = 72.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        temperature = TUNING.HOT_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_green_pepper", 1 }, { "meat", 1 }, { "tomato", 1 }, { "potato", 1 } } },
    },
    -- 草莓汽水
    tf_strawberry_soda =
    {
        test = function(cooker, names, tags)
            return names.tf_strawberry == 2 and tags.frozen and tags.frozen > 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 3,
        hunger = 12.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        temperature = TUNING.COLD_FOOD_BONUS_TEMP,
        temperatureduration = TUNING.FOOD_TEMP_LONG,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_strawberry", 2 }, { "ice", 2 } } },
    },
    -- 半熟芝士
    tf_semi_cooked_cheese =
    {
        test = function(cooker, names, tags)
            return names.goatmilk == 2 and tags.egg and tags.sweetener
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 60,
        hunger = 75,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        stacksize = 2,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "goatmilk", 2 }, { "honey", 1 }, { "bird_egg", 1 } } },
    },
    -- 扬州炒饭
    tf_yangzhou_fried_rice =
    {
        test = function(cooker, names, tags)
            return names.corn and names.tf_green_pepper and names.carrot
                and (names.tf_green_shrimp_meat == 1 or names.tf_green_shrimp_meat_cooked == 1 or names.tf_green_shrimp == 1)
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 40,
        hunger = 122.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        stacksize = 2,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "corn", 1 }, { "tf_green_pepper", 1 }, { "carrot", 1 }, { "tf_green_shrimp_meat", 1 } } },
    },
    -- 橘子果冻
    tf_orange_jelly =
    {
        test = function(cooker, names, tags)
            return names.tf_orange == 2 and tags.sweetener and tags.sweetener > 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 12.5,
        hunger = 33,
        perishtime = 10 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_orange", 2 }, { "honey", 2 } } },
    },
    -- 缤纷橘子大满贯
    tf_citrus_grand_slam = {
        test = function(cooker, names, tags)
            return names.tf_orange == 3 and tags.frozen and tags.frozen >= 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 33,
        hunger = 33,
        perishtime = 10 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_orange", 3 }, { "ice", 1 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_hot", "tf_buff_no_hot")
        end
    },
    -- 橘子水晶杯
    tf_orange_crystal_cup = {
        test = function(cooker, names, tags)
            return names.tf_orange == 1 and tags.sweetener and tags.sweetener >= 1
                and tags.frozen and tags.frozen >= 1 and tags.dairy and tags.dairy >= 1
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 40,
        hunger = 66,
        perishtime = 12 * TUNING.TOTAL_DAY_TIME,
        sanity = 42.5,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_orange", 1 }, { "honey", 1 }, { "ice", 1 }, { "goatmilk", 1 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_hot", "tf_buff_no_hot")
        end
    },
    -- 莓果橘子茶
    tf_berry_orange_tea = {
        test = function(cooker, names, tags)
            return names.tf_orange == 1 and names.tf_strawberry == 1
                and tags.frozen and tags.frozen >= 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 3,
        hunger = 12.5,
        perishtime = 10 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_orange", 1 }, { "tf_strawberry", 1 }, { "ice", 2 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_hot", "tf_buff_no_hot")
        end
    },
    -- 瓦罐排骨汤
    tf_claypot_rib_soup = {
        test = function(cooker, names, tags)
            return names.corn == 1 and names.tf_milk == 1
                and tags.meat and tags.meat >= 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 40,
        hunger = 77.5,
        perishtime = 15 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "corn", 1 }, { "tf_milk", 1 }, { "meat", 2 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_clod", "tf_buff_no_clod")
        end
    },
    -- 五花肉泡菜汤
    tf_pork_kimchi_soup = {
        test = function(cooker, names, tags)
            return names.pepper == 1 and names.tf_kimchi == 1
                and tags.meat and tags.meat >= 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 30,
        hunger = 112.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 15,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "pepper", 1 }, { "tf_kimchi", 1 }, { "meat", 2 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_clod", "tf_buff_no_clod")
        end
    },
    -- 草莓蛋糕卷
    tf_strawberry_cake_roll = {
        test = function(cooker, names, tags)
            return names.tf_strawberry == 2 and tags.dairy and tags.dairy >= 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 60,
        hunger = 25,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 80,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_strawberry", 2 }, { "tf_milk", 2 } } },
    },
    -- 红石榴千层
    tf_pomegranate_millefeuille = {
        test = function(cooker, names, tags)
            return names.pomegranate == 2 and tags.dairy and tags.dairy >= 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 50,
        hunger = 12.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 90,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "pomegranate", 2 }, { "tf_milk", 2 } } },
    },
    -- 特浓西瓜汁
    tf_rich_watermelon_juice = {
        test = function(cooker, names, tags)
            return names.watermelon == 3 and tags.frozen and tags.frozen >= 1
        end,
        priority = 90,
        weight = 1,
        foodtype = FOODTYPE.VEGGIE,
        health = 10,
        hunger = 12.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 88,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "watermelon", 3 }, { "ice", 1 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_hot", "tf_buff_no_hot")
        end
    },
    -- 西瓜椰椰
    tf_watermelon_coconut = {
        test = function(cooker, names, tags)
            return names.watermelon == 2 and tags.dairy and tags.dairy >= 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 15,
        hunger = 12.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 99.9,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "watermelon", 2 }, { "tf_milk", 2 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_hot", "tf_buff_no_hot")
        end
    },
    -- 草莓火龙果汽水
    tf_strawberry_dragon_soda = {
        test = function(cooker, names, tags)
            return names.dragonfruit and names.tf_strawberry and tags.frozen and tags.frozen >= 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 20,
        hunger = 12.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "dragonfruit", 1 }, { "tf_strawberry", 1 }, { "ice", 2 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_hot", "tf_buff_no_hot")
        end
    },
    -- 发光浆果汽水
    tf_glow_berry_soda = {
        test = function(cooker, names, tags)
            return (names.wormlight or (names.wormlight_lesser and names.wormlight_lesser >= 2)) and tags.frozen and tags.frozen >= 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 20,
        hunger = 12.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "wormlight_lesser", 2 }, { "ice", 2 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_hot", "tf_buff_no_hot")
        end
    },
    -- 石榴汽水
    tf_pomegranate_soda = {
        test = function(cooker, names, tags)
            return names.pomegranate == 2 and tags.frozen and tags.frozen >= 2
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.GOODIES,
        health = 20,
        hunger = 12.5,
        perishtime = 20 * TUNING.TOTAL_DAY_TIME,
        sanity = 33,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "pomegranate", 2 }, { "ice", 2 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_hot", "tf_buff_no_hot")
        end
    },
    -- 清蒸蟹粉狮子头
    tf_steamed_crab_lionhead = {
        test = function(cooker, names, tags)
            return ((names.tf_crab or 0) + (names.tf_dead_crab or 0) + (names.tf_dead_crab_cooked or 0)) >= 3 and
                (tags.meat and tags.meat >= 1)
        end,
        priority = 30,
        weight = 1,
        foodtype = FOODTYPE.MEAT,
        health = 88,
        hunger = 188,
        perishtime = 15 * TUNING.TOTAL_DAY_TIME,
        sanity = 88,
        cooktime = 1,
        floater = { "med", nil, 0.55 },
        card_def = { ingredients = { { "tf_crab", 3 }, { "meat", 1 } } },
        oneatenfn = function(inst, eater)
            eater:AddDebuff("tf_buff_no_clod", "tf_buff_no_clod")
        end
    },
}

local cookbookui_tf = require "widgets/cookbookui_tf"

for k, v in pairs(foods) do
    v.name = k
    v.basename = k
    v.weight = v.weight or 1
    v.priority = v.priority or 0
    v.overridebuild = "tf_foods"
    v.mod = "tf"
    v.cookbook_category = "cookpot"

    -- 烹饪指南里的料理贴图
    if v.cookbook_atlas == nil then
        v.cookbook_atlas = "images/cookbook_images/" .. k .. ".xml"
    end
    if v.cookbook_tex == nil then
        v.cookbook_tex = "" .. k .. ".tex"
    end
    v.custom_cookbook_details_fn = function(data, self, top, left)
        local root = cookbookui_tf(data, self, top, left)
        return root
    end
end

return foods
